package com.wangyuhang.dao;

import com.wangyuhang.vo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface testDao {
    void print();
    @Select("select count(*) from test2")
    int findAll();

    @Select("select * from  test2")
    List<User> findAllUsers();

    @Select("select * from test2 where name=#{name}")
    User findUser(@Param("name") String name);
}
